import { ref, onBeforeUnmount } from 'vue';
const { defineProps, defineSlots, defineEmits, defineExpose, defineModel, defineOptions, withDefaults, } = await import('vue');
const editIndex = ref(-1);
const tableData = [
    {
        modelName: 'qwen1.5-14b-chat',
        modelSpace: 'qwen',
        apiAddr: 'http://127.0.0.1:9997',
        apiToken: '*********'
    }
];
onBeforeUnmount(() => {
    editIndex.value = -1;
});
let __VLS_functionalComponentProps;
let __VLS_modelEmitsType;
const __VLS_componentsOption = {};
let __VLS_name;
function __VLS_template() {
    let __VLS_ctx;
    /* Components */
    let __VLS_otherComponents;
    let __VLS_own;
    let __VLS_localComponents;
    let __VLS_components;
    let __VLS_styleScopedClasses;
    // CSS variable injection 
    // CSS variable injection end 
    let __VLS_resolvedLocalAndGlobalComponents;
    __VLS_elementAsFunction(__VLS_intrinsicElements.div, __VLS_intrinsicElements.div)({});
    const __VLS_0 = {}.ElTable;
    const __VLS_1 = __VLS_asFunctionalComponent(__VLS_0, new __VLS_0({ data: ((__VLS_ctx.tableData)), stripe: (true), style: ({}), }));
    ({}.ElTable);
    ({}.ElTable);
    __VLS_components.ElTable;
    __VLS_components.elTable;
    __VLS_components.ElTable;
    __VLS_components.elTable;
    // @ts-ignore
    [ElTable, ElTable,];
    const __VLS_2 = __VLS_1({ data: ((__VLS_ctx.tableData)), stripe: (true), style: ({}), }, ...__VLS_functionalComponentArgsRest(__VLS_1));
    ({}({ data: ((__VLS_ctx.tableData)), stripe: (true), style: ({}), }));
    const __VLS_5 = {}.ElTableColumn;
    const __VLS_6 = __VLS_asFunctionalComponent(__VLS_5, new __VLS_5({ prop: ("modelName"), label: ("模型名称"), width: ("180"), }));
    ({}.ElTableColumn);
    ({}.ElTableColumn);
    __VLS_components.ElTableColumn;
    __VLS_components.elTableColumn;
    __VLS_components.ElTableColumn;
    __VLS_components.elTableColumn;
    // @ts-ignore
    [ElTableColumn, ElTableColumn,];
    const __VLS_7 = __VLS_6({ prop: ("modelName"), label: ("模型名称"), width: ("180"), }, ...__VLS_functionalComponentArgsRest(__VLS_6));
    ({}({ prop: ("modelName"), label: ("模型名称"), width: ("180"), }));
    __VLS_elementAsFunction(__VLS_intrinsicElements.template, __VLS_intrinsicElements.template)({});
    {
        const [scope] = __VLS_getSlotParams((__VLS_9.slots).default);
        __VLS_elementAsFunction(__VLS_intrinsicElements.span, __VLS_intrinsicElements.span)({});
        __VLS_directiveFunction(__VLS_ctx.vShow)((scope.$index !== __VLS_ctx.editIndex));
        (scope.row.modelName);
        // @ts-ignore
        [tableData, vShow, editIndex,];
        const __VLS_10 = {}.ElInput;
        const __VLS_11 = __VLS_asFunctionalComponent(__VLS_10, new __VLS_10({ modelValue: ((scope.row.modelName)), }));
        ({}.ElInput);
        ({}.ElInput);
        __VLS_components.ElInput;
        __VLS_components.elInput;
        __VLS_components.ElInput;
        __VLS_components.elInput;
        // @ts-ignore
        [ElInput, ElInput,];
        const __VLS_12 = __VLS_11({ modelValue: ((scope.row.modelName)), }, ...__VLS_functionalComponentArgsRest(__VLS_11));
        ({}({ modelValue: ((scope.row.modelName)), }));
        __VLS_directiveFunction(__VLS_ctx.vShow)((scope.$index === __VLS_ctx.editIndex));
        // @ts-ignore
        [vShow, editIndex,];
        const __VLS_14 = __VLS_pickFunctionalComponentCtx(__VLS_10, __VLS_12);
    }
    const __VLS_9 = __VLS_pickFunctionalComponentCtx(__VLS_5, __VLS_7);
    const __VLS_15 = {}.ElTableColumn;
    const __VLS_16 = __VLS_asFunctionalComponent(__VLS_15, new __VLS_15({ prop: ("modelSpace"), label: ("模型厂商"), width: ("180"), }));
    ({}.ElTableColumn);
    ({}.ElTableColumn);
    __VLS_components.ElTableColumn;
    __VLS_components.elTableColumn;
    __VLS_components.ElTableColumn;
    __VLS_components.elTableColumn;
    // @ts-ignore
    [ElTableColumn, ElTableColumn,];
    const __VLS_17 = __VLS_16({ prop: ("modelSpace"), label: ("模型厂商"), width: ("180"), }, ...__VLS_functionalComponentArgsRest(__VLS_16));
    ({}({ prop: ("modelSpace"), label: ("模型厂商"), width: ("180"), }));
    __VLS_elementAsFunction(__VLS_intrinsicElements.template, __VLS_intrinsicElements.template)({});
    {
        const [scope] = __VLS_getSlotParams((__VLS_19.slots).default);
        __VLS_elementAsFunction(__VLS_intrinsicElements.span, __VLS_intrinsicElements.span)({});
        __VLS_directiveFunction(__VLS_ctx.vShow)((scope.$index !== __VLS_ctx.editIndex));
        (scope.row.modelSpace);
        // @ts-ignore
        [vShow, editIndex,];
        const __VLS_20 = {}.ElInput;
        const __VLS_21 = __VLS_asFunctionalComponent(__VLS_20, new __VLS_20({ modelValue: ((scope.row.modelSpace)), }));
        ({}.ElInput);
        ({}.ElInput);
        __VLS_components.ElInput;
        __VLS_components.elInput;
        __VLS_components.ElInput;
        __VLS_components.elInput;
        // @ts-ignore
        [ElInput, ElInput,];
        const __VLS_22 = __VLS_21({ modelValue: ((scope.row.modelSpace)), }, ...__VLS_functionalComponentArgsRest(__VLS_21));
        ({}({ modelValue: ((scope.row.modelSpace)), }));
        __VLS_directiveFunction(__VLS_ctx.vShow)((scope.$index === __VLS_ctx.editIndex));
        // @ts-ignore
        [vShow, editIndex,];
        const __VLS_24 = __VLS_pickFunctionalComponentCtx(__VLS_20, __VLS_22);
    }
    const __VLS_19 = __VLS_pickFunctionalComponentCtx(__VLS_15, __VLS_17);
    const __VLS_25 = {}.ElTableColumn;
    const __VLS_26 = __VLS_asFunctionalComponent(__VLS_25, new __VLS_25({ prop: ("apiAddr"), label: ("api地址"), }));
    ({}.ElTableColumn);
    ({}.ElTableColumn);
    __VLS_components.ElTableColumn;
    __VLS_components.elTableColumn;
    __VLS_components.ElTableColumn;
    __VLS_components.elTableColumn;
    // @ts-ignore
    [ElTableColumn, ElTableColumn,];
    const __VLS_27 = __VLS_26({ prop: ("apiAddr"), label: ("api地址"), }, ...__VLS_functionalComponentArgsRest(__VLS_26));
    ({}({ prop: ("apiAddr"), label: ("api地址"), }));
    __VLS_elementAsFunction(__VLS_intrinsicElements.template, __VLS_intrinsicElements.template)({});
    {
        const [scope] = __VLS_getSlotParams((__VLS_29.slots).default);
        __VLS_elementAsFunction(__VLS_intrinsicElements.span, __VLS_intrinsicElements.span)({});
        __VLS_directiveFunction(__VLS_ctx.vShow)((scope.$index !== __VLS_ctx.editIndex));
        (scope.row.apiAddr);
        // @ts-ignore
        [vShow, editIndex,];
        const __VLS_30 = {}.ElInput;
        const __VLS_31 = __VLS_asFunctionalComponent(__VLS_30, new __VLS_30({ modelValue: ((scope.row.apiAddr)), }));
        ({}.ElInput);
        ({}.ElInput);
        __VLS_components.ElInput;
        __VLS_components.elInput;
        __VLS_components.ElInput;
        __VLS_components.elInput;
        // @ts-ignore
        [ElInput, ElInput,];
        const __VLS_32 = __VLS_31({ modelValue: ((scope.row.apiAddr)), }, ...__VLS_functionalComponentArgsRest(__VLS_31));
        ({}({ modelValue: ((scope.row.apiAddr)), }));
        __VLS_directiveFunction(__VLS_ctx.vShow)((scope.$index === __VLS_ctx.editIndex));
        // @ts-ignore
        [vShow, editIndex,];
        const __VLS_34 = __VLS_pickFunctionalComponentCtx(__VLS_30, __VLS_32);
    }
    const __VLS_29 = __VLS_pickFunctionalComponentCtx(__VLS_25, __VLS_27);
    const __VLS_35 = {}.ElTableColumn;
    const __VLS_36 = __VLS_asFunctionalComponent(__VLS_35, new __VLS_35({ prop: ("apiToken"), label: ("api令牌"), }));
    ({}.ElTableColumn);
    ({}.ElTableColumn);
    __VLS_components.ElTableColumn;
    __VLS_components.elTableColumn;
    __VLS_components.ElTableColumn;
    __VLS_components.elTableColumn;
    // @ts-ignore
    [ElTableColumn, ElTableColumn,];
    const __VLS_37 = __VLS_36({ prop: ("apiToken"), label: ("api令牌"), }, ...__VLS_functionalComponentArgsRest(__VLS_36));
    ({}({ prop: ("apiToken"), label: ("api令牌"), }));
    __VLS_elementAsFunction(__VLS_intrinsicElements.template, __VLS_intrinsicElements.template)({});
    {
        const [scope] = __VLS_getSlotParams((__VLS_39.slots).default);
        __VLS_elementAsFunction(__VLS_intrinsicElements.span, __VLS_intrinsicElements.span)({});
        __VLS_directiveFunction(__VLS_ctx.vShow)((scope.$index !== __VLS_ctx.editIndex));
        (scope.row.apiToken);
        // @ts-ignore
        [vShow, editIndex,];
        const __VLS_40 = {}.ElInput;
        const __VLS_41 = __VLS_asFunctionalComponent(__VLS_40, new __VLS_40({ modelValue: ((scope.row.apiToken)), }));
        ({}.ElInput);
        ({}.ElInput);
        __VLS_components.ElInput;
        __VLS_components.elInput;
        __VLS_components.ElInput;
        __VLS_components.elInput;
        // @ts-ignore
        [ElInput, ElInput,];
        const __VLS_42 = __VLS_41({ modelValue: ((scope.row.apiToken)), }, ...__VLS_functionalComponentArgsRest(__VLS_41));
        ({}({ modelValue: ((scope.row.apiToken)), }));
        __VLS_directiveFunction(__VLS_ctx.vShow)((scope.$index === __VLS_ctx.editIndex));
        // @ts-ignore
        [vShow, editIndex,];
        const __VLS_44 = __VLS_pickFunctionalComponentCtx(__VLS_40, __VLS_42);
    }
    const __VLS_39 = __VLS_pickFunctionalComponentCtx(__VLS_35, __VLS_37);
    const __VLS_45 = {}.ElTableColumn;
    const __VLS_46 = __VLS_asFunctionalComponent(__VLS_45, new __VLS_45({ fixed: ("right"), label: ("操作"), width: ("120"), }));
    ({}.ElTableColumn);
    ({}.ElTableColumn);
    __VLS_components.ElTableColumn;
    __VLS_components.elTableColumn;
    __VLS_components.ElTableColumn;
    __VLS_components.elTableColumn;
    // @ts-ignore
    [ElTableColumn, ElTableColumn,];
    const __VLS_47 = __VLS_46({ fixed: ("right"), label: ("操作"), width: ("120"), }, ...__VLS_functionalComponentArgsRest(__VLS_46));
    ({}({ fixed: ("right"), label: ("操作"), width: ("120"), }));
    __VLS_elementAsFunction(__VLS_intrinsicElements.template, __VLS_intrinsicElements.template)({});
    {
        const [scope] = __VLS_getSlotParams((__VLS_49.slots).default);
        const __VLS_50 = {}.ElButton;
        const __VLS_51 = __VLS_asFunctionalComponent(__VLS_50, new __VLS_50({ ...{ 'onClick': {}, }, link: (true), type: ("primary"), size: ("small"), }));
        ({}.ElButton);
        ({}.ElButton);
        __VLS_components.ElButton;
        __VLS_components.elButton;
        __VLS_components.ElButton;
        __VLS_components.elButton;
        // @ts-ignore
        [ElButton, ElButton,];
        const __VLS_52 = __VLS_51({ ...{ 'onClick': {}, }, link: (true), type: ("primary"), size: ("small"), }, ...__VLS_functionalComponentArgsRest(__VLS_51));
        ({}({ ...{ 'onClick': {}, }, link: (true), type: ("primary"), size: ("small"), }));
        __VLS_directiveFunction(__VLS_ctx.vShow)((scope.$index !== __VLS_ctx.editIndex));
        let __VLS_55 = { 'click': __VLS_pickEvent(__VLS_53['click'], {}.onClick) };
        __VLS_55 = { click: (() => __VLS_ctx.editIndex = scope.$index) };
        // @ts-ignore
        [vShow, editIndex, editIndex,];
        (__VLS_54.slots).default;
        const __VLS_54 = __VLS_pickFunctionalComponentCtx(__VLS_50, __VLS_52);
        let __VLS_53;
        const __VLS_56 = {}.ElButton;
        const __VLS_57 = __VLS_asFunctionalComponent(__VLS_56, new __VLS_56({ link: (true), type: ("primary"), size: ("small"), }));
        ({}.ElButton);
        ({}.ElButton);
        __VLS_components.ElButton;
        __VLS_components.elButton;
        __VLS_components.ElButton;
        __VLS_components.elButton;
        // @ts-ignore
        [ElButton, ElButton,];
        const __VLS_58 = __VLS_57({ link: (true), type: ("primary"), size: ("small"), }, ...__VLS_functionalComponentArgsRest(__VLS_57));
        ({}({ link: (true), type: ("primary"), size: ("small"), }));
        __VLS_directiveFunction(__VLS_ctx.vShow)((scope.$index === __VLS_ctx.editIndex));
        // @ts-ignore
        [vShow, editIndex,];
        (__VLS_60.slots).default;
        const __VLS_60 = __VLS_pickFunctionalComponentCtx(__VLS_56, __VLS_58);
        const __VLS_61 = {}.ElButton;
        const __VLS_62 = __VLS_asFunctionalComponent(__VLS_61, new __VLS_61({ link: (true), type: ("danger"), size: ("small"), }));
        ({}.ElButton);
        ({}.ElButton);
        __VLS_components.ElButton;
        __VLS_components.elButton;
        __VLS_components.ElButton;
        __VLS_components.elButton;
        // @ts-ignore
        [ElButton, ElButton,];
        const __VLS_63 = __VLS_62({ link: (true), type: ("danger"), size: ("small"), }, ...__VLS_functionalComponentArgsRest(__VLS_62));
        ({}({ link: (true), type: ("danger"), size: ("small"), }));
        (__VLS_65.slots).default;
        const __VLS_65 = __VLS_pickFunctionalComponentCtx(__VLS_61, __VLS_63);
    }
    const __VLS_49 = __VLS_pickFunctionalComponentCtx(__VLS_45, __VLS_47);
    (__VLS_4.slots).default;
    const __VLS_4 = __VLS_pickFunctionalComponentCtx(__VLS_0, __VLS_2);
    if (typeof __VLS_styleScopedClasses === 'object' && !Array.isArray(__VLS_styleScopedClasses)) {
    }
    var __VLS_slots;
    return __VLS_slots;
}
const __VLS_internalComponent = (await import('vue')).defineComponent({
    setup() {
        return {
            editIndex: editIndex,
            tableData: tableData,
        };
    },
});
export default (await import('vue')).defineComponent({
    setup() {
        return {};
    },
});
